package sg.edu.nus.iss.vmcs.languagesupport;

import java.util.Properties;

import sg.edu.nus.iss.vmcs.system.Environment;
import sg.edu.nus.iss.vmcs.util.VMCSException;

public class LanguagerPropertyFactory {
	
	public Properties getProperties() throws VMCSException{
		if ("EN".equalsIgnoreCase(Environment.getLanguage())) {
			return new LanguagerPropertyBuilder().loadProperty("language/en.properties");
		} else if ("CH".equalsIgnoreCase(Environment.getLanguage())) {
			return new LanguagerPropertyBuilder().loadProperty("language/ch.properties");
		} else {
			throw new VMCSException();
		}
	}

}
